package org.iks.store.business.vo.session;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.iks.common.constant.Constant;

import java.util.Date;

/**
 * Author kzou
 * Date 2024/2/15
 * Description: 会话信息
 */
@Data
public class SessionVo {

    @Schema(description = "会话ID")
    private Integer id;

    @Schema(description = "会话名称")
    private String name;

    @Schema(description = "会话创建者")
    private String creatorAccount;

    @Schema(description = "会话创建时间")
    @JsonFormat(pattern = Constant.DATE_TIME_FORMAT)
    private Date createTime;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "成员个数")
    private Integer memberCount;

    @Schema(description = "用户账号")
    private String userAccount;
}
